import { useState } from 'react';

export function useQiankunStateForSlave() {
  const [globalState, setGlobalState] = useState({ currentUser: undefined });
  const setGlobaConfig = (state: any) => {
    setGlobalState({ ...globalState, ...state });
  };
  return {
    globalState,
    setGlobaConfig,
  };
}
